package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 简历
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("resume")
public class Resume extends Model<Resume> implements Serializable {


    /**
     * 简历ID
     */
    @TableId(value = "resume_id", type = IdType.AUTO)
    private Integer resumeId;

    /**
     * 简历投放者
     */
    @TableField("resume_staff_id")
    private Integer resumeStaffId;

    @TableField(exist = false)
    private Staff staff;

    public Staff getStaff() {
        return staff;
    }

    public Resume setStaff(Staff staff) {
        this.staff = staff;
        return this;
    }

    /**
     * 简历文件地址
     */
    @TableField("resume_url")
    private String resumeUrl;

    public Integer getResumeId() {
        return resumeId;
    }

    public Resume setResumeId(Integer resumeId) {
        this.resumeId = resumeId;
        return this;
    }

    public Integer getResumeStaffId() {
        return resumeStaffId;
    }

    public Resume setResumeStaffId(Integer resumeStaffId) {
        this.resumeStaffId = resumeStaffId;
        return this;
    }

    public String getResumeUrl() {
        return resumeUrl;
    }

    public Resume setResumeUrl(String resumeUrl) {
        this.resumeUrl = resumeUrl;
        return this;
    }

    @Override
    public String toString() {
        return "Resume{" +
                "resumeId=" + resumeId +
                ", resumeStaffId=" + resumeStaffId +
                ", resumeUrl=" + resumeUrl +
                "}";
    }
}
